<template>
  <div class="content">
    <div class="kong"></div>
    <div class="cont">
      <div
        v-for="(item,index) in linkList"
        :key="index"
        @click="linkClick(item)"
      >
        <div class="left">
          <span>{{item.label}}</span>
          <p>{{item.hint}}</p>
        </div>
        <img :src="item.img" mode="scaleToFill" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data () {
    return {
      linkList: [
        {
          label: '常用数据',
          hint: '实时更新',
          img:
            'https://akk.028wkf.cn/kdb-weapp-img/data-img/common-data.png',
          link: '/pages/data-analyze/show-data-info/main'
        },
        {
          label: '数据分析',
          hint: '动态发布',
          img:
            'https://akk.028wkf.cn/kdb-weapp-img/data-img/analyze-data.png',
          link: '/pages/data-analyze/data-echarts/main'
        }
      ]
    }
  },
  computed: {},
  watch: {},
  created () {},
  mounted () {},
  onShow () {},
  methods: {
    linkClick (item) {
      this.$router.push(`${item.link}`)
    }
  }
}
</script>

<style lang="scss" scoped>
@import 'static/styles/color.scss';
.content {
  width: 100%;
  background: #f2f3f5;
  > .kong {
    height: 10px;
  }
  > .cont {
    width: 95%;
    height: 100px;
    margin: auto;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 8px lighten($gray, 20%);
    > div {
      width: 45%;
      display: flex;
      align-items: center;
      justify-content: center;
      > .left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        > span {
          font-size: 16px;
          font-weight: 600;
        }
        > p {
          font-size: 13px;
          color: #666;
          line-height: 30px;
        }
      }
      > img {
        width: 45%;
        height: 65px;
        margin-left: 10px;
      }
    }
  }
}
</style>
